/**
 * 版权所有（c）2021. 上海海鼎信息工程股份有限公司，保留所有权利
 */
package com.lovely602.design.behavior.strategy;

/**
 * 环境类
 *
 * @author lizhixing
 */
public class Context {

  private Strategy strategy;

  public Strategy getStrategy() {
    return strategy;
  }

  public void setStrategy(Strategy strategy) {
    this.strategy = strategy;
  }

  public void strategyMethod() {
    strategy.strategyMethod();
  }
}
